﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.RAL.Permissions;
using CqusInfo.DAL.Permissions;

namespace CqusInfo.BLL.Permissions
{
    public class FunctionBLL : Inteface.IFunctionBLL
    {
        private static readonly FunctionDAL fDal = new FunctionDAL();
        public Int32 GetCounts(bool isDel)
        {
            return fDal.GetCounts(isDel);
        }

        public Int32 Add(FunctionModel model)
        {
            return fDal.Add(model);
        }

        public Int32 Update(string fId, FunctionModel model)
        {
            return fDal.Update(fId, model);
        }

        public Int32 Delete(string fId, bool isDel, bool trueDel)
        {
            return fDal.Delete(fId, isDel, trueDel);
        }

        public List<FunctionModel> Query(string fId)
        {
            return fDal.Query(fId);
        }

        public List<FunctionModel> Query(Int32 page, Int32 takeItem, bool isDel)
        {
            return fDal.Query(page, takeItem, isDel);
        }
    }
}
